# Contributor: Adam Thiede <me@adamthiede.com>
# Maintainer: Adam Thiede <me@adamthiede.com>
pkgname=tty-clock
_pkgbase=2.3
_pkgsnap=20240104
_commit=f2f847cf2cc2949c8a8b7779a778f366d3743474
# No release since 2017 with required fixes in master
pkgver=${_pkgbase}_git$_pkgsnap
pkgrel=0
pkgdesc="tty clock!"
url="https://github.com/xorg62/tty-clock"
arch="all"
license="BSD-3-Clause"
makedepends="ncurses-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/xorg62/tty-clock/archive/$_commit.tar.gz"
builddir="$srcdir/$pkgname-$_commit/"
options="!check" # no tests

build() {
	make
}

package() {
	PREFIX=/usr DESTDIR=$pkgdir make install
}

sha512sums="
d2deeecae844022bf75c020e39a1fbce92f752e42fd7967e08edf8032d93014b98129d33ff356437b8b22f7d72f1206db4eebe74716944270b89d2f891d65e06  tty-clock-2.3_git20240104.tar.gz
"
